/* $Id: icaro_science.c,v 1.29 2009/02/10 09:16:12 llundin Exp $
 *
 * This file is part of the IIINSTRUMENT Pipeline
 * Copyright (C) 2002,2003 European Southern Observatory
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

/*
 * $Author: llundin $
 * $Date: 2009/02/10 09:16:12 $
 * $Revision: 1.29 $
 * $Name:  $
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef ICARO_SCIENCE_H
#define ICARO_SCIENCE_H

/*-----------------------------------------------------------------------------
                                Includes
 -----------------------------------------------------------------------------*/

#include <vector>
#include "Recipe.h"

/*-----------------------------------------------------------------------------
                            Recipe class
 -----------------------------------------------------------------------------*/

class IcaroScience : public Refran::Recipe
{
    public:

    /** 
     * The name of the recipe
     */
    static const std::string s_Name;

    /**
     * The version of the recipe
     */
    static const unsigned int s_Version = IIINSTRUMENT_BINARY_VERSION;

    /**
     * Constructor
     */
    IcaroScience();

    private:

    /**
     * Makes the job 
     */
    void go_impl_();

    /**
     * Process some data
     */
    double processDataBuffer_(const std::vector<double>&, int thread_id);

    /**
     *  Store some values as if they were two detectors
     */
    double m_sum[2];

    /** 
     * The description of the recipe
     */
    static const std::string s_Description;

    /** 
     * The synopsis of the recipe
     */
    static const std::string s_Synopsis;

};

#endif // ICARO_SCIENCE_H
